.container {
    height: calc(100vh - 70px - 164px); // 浏览器高度 - AdminHeader高度(70px) - 164px
    display: flex;
    flex-direction: column;
    background: #1a1a1a; // 改为深色背景
    // 确保容器不会产生滚动条
    overflow: hidden;
    // 确保容器占满可用空间
    margin: -16px; // 抵消Card的padding
}

.iframeContainer {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a; // 改为深色背景
    // 确保iframe容器占满剩余空间
    height: 100%;
}

.iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #1a1a1a; // 改为深色背景
    // 确保iframe可以滚动
    overflow: auto;
}

/* 加载状态覆盖层 */
.loadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 24px;
}

.loadingText {
    color: #00ff00;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 255, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 错误状态覆盖层 */
.errorOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px;
}

.errorAlert {
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    background: rgba(255, 0, 0, 0.05);
    
    :global(.ant-alert-message) {
        color: #ff4d4f;
        font-weight: 600;
    }
    
    :global(.ant-alert-description) {
        color: #ccc;
    }
    
    :global(.ant-alert-icon) {
        color: #ff4d4f;
    }
}

.retryButton {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    
    &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
    }
}